home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_03_02 / 3n02062a < prev    next >
Text File  |  1991-11-17  |  851b  |  31 lines

  1. #
  2. #   Microsoft C v6.00ax makefile for grafbutn.exe
  3. #
  4. CFLAGS=-Gcsw2 -Od -W3 -Zp -Zi -EM
  5.  
  6. #Where:
  7. #   -Gcsw2  - Pascal-style functions, no stack
  8. #             checking, generate Windows epilog
  9. #             and prolog, use 80286 instructions.
  10. #   -Od     - Turn off optimizations (cause they
  11. #             sometimes cause bugs).
  12. #   -W3     - Warning level 3
  13. #   -Zp     - pack structures on byte boundaries
  14. #   -Zi     - generate debugging information
  15. #   -EM     - Use DOS-extended version of compiler
  16.  
  17. MODEL   =s
  18. WLIBS   = libw $(MODEL)libcew
  19.  
  20. APPNAME =grafbutn
  21. OBJ     =$(APPNAME).obj
  22.  
  23. .rc.res:
  24.         rc -r $*.rc
  25.  
  26. $(APPNAME).exe  : $(OBJ) $(APPNAME).res makefile $(APPNAME).def
  27.         link $(LFLAGS) $(OBJ),,,$(WLIBS) $(LIBS),$(APPNAME).def
  28.         rc $(APPNAME).res $(APPNAME).exe
  29.  
  30. $(APPNAME).res  : $(APPNAME).rc
  31.